<template>
    <div class="addPermissionList">
        <el-dialog
             center
            :before-close="handClose"
            width="30%"
            title="收货地址"
            :visible.sync="off"
            append-to-body>
            <el-table  :data="addressData" style="width: 100%" border>
                <el-table-column type="index" label="序号" width="200" align="center" :index="indexSort">
                </el-table-column>
                <el-table-column prop="userId" label="创建时间" align="center">
                </el-table-column>
                <el-table-column prop="account" label="姓名" align="center">
                </el-table-column>
                <el-table-column prop="age" label="电话" align="center">
                </el-table-column> 
                <el-table-column prop="maximg" label="地址" align="center">
                </el-table-column> 
                <el-table-column label="操作" align="center" width="200">
                    <template slot-scope="scope">
                        <el-button type="text" style="cursor: pointer;" @click="deleteRow(scope.$index ,scope.row.shTypeId, houseCats)" size="mini">
                        删除
                        </el-button>
                    </template>
                </el-table-column>
            </el-table>
           
        </el-dialog>
    </div>
   
</template>

<script>
    export default {
        name: "address",
        props: {
            off: {
                type: Boolean
            }
        },
        data(){
            return {
                addressData: []
            }
        },
        methods: {
            handClose(){
                this.$emit("update:off", false);
            },
            deleteRow(){},
            indexSort(index){
                return ++index;
            },
        }
    }
</script>